package com.ktjiaoyu;

import com.ktjiaoyu.entity.SysRole;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

@Configuration
@ComponentScan(basePackages = "com.ktjiaoyu.config")
@ImportResource("classpath:applicationContext.xml")
public class MainApplixation {
    @Bean
    public SysRole role(){
        SysRole role = new SysRole();
        role.setRoleName("admin");
        return role;
    }

}
